<?php

namespace app\yunda\validate;
use think\Validate;
class Category extends Validate
{
    //定义验证规则
    protected $rule = [
        'name|分类名称' => 'require|max:30',

    ];

    //定义验证提示
    protected $message = [
        'name.max' => '分类名称最多30个字符',
    ];
}
